<!DOCTYPE html>
<html lang="zh">
<head>
<title>库存查询</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="Thu, 19 Nov 1900 08:52:00 GMT" />

<!-- 加载 bootstrap 样式-->
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.min.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/font-awesome/css/font-awesome.min.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/bootstrap/css/bootstrap.min.css" />


<!-- 加载本页需要的三方插件样式 -->
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/DataTables/media/css/jquery.dataTables.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/DataTables/extensions/TableTools/css/dataTables.tableTools.min.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/DataTables/media/css/dataTables.bootstrap.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-tablesorter/themes/blue/style-custom.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-bootstrap-wizard/custom.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-steps/css/jquery.steps.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/bootstrap-colorpicker/css/colorpicker.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/bootstrap-clockface/css/clockface.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/bootstrap-switch/css/bootstrap-switch.css">
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/animate.css/animate.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/iCheck/skins/all.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/jquery-notific8/jquery.notific8.min.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/bootstrap-daterangepicker/daterangepicker-bs3.css" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/vendors/bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css">

<!-- 加载主题风格样式 -->
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/css/themes/style1/orange-blue.css" class="default-style" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/css/themes/style1/orange-blue.css" id="theme-change" class="style-change color-change" />
<link type="text/css" rel="stylesheet" href="/Apollo/madmin/css/style-responsive.css" />

    <link type="text/css" rel="stylesheet" href="/css/tooltip.css" />
<!-- waitVerify -->

</head>
<body class="">
    <!--BEGIN CONTENT-->
    <div class="page-content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-8 col-xs-8 col-sm-8 col-md-8"></div>
                <div class="col-lg-4 col-xs-4 col-sm-4 col-md-4" style="margin-bottom: 10px;">
                    <div class="input-group">
                        <input id="quickSearch" type="text" placeholder="商品名称/编码、规格名称/编码" class="form-control" /> <span class="input-group-btn">
                            <button id="btnQuickSearch" type="button" class="btn btn-primary">
                                <i class="fa fa-search"></i>
                            </button>
                        </span>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-lg-12">
                    <div class="portlet box portlet-blue tabbable">
                        <div class="portlet-header">
                            <div class="caption">商品列表</div>
                        </div>
                        <div class="portlet-body">
                            <div class="tabbable portlet-tabs">
                                <ul class="nav nav-tabs" style="padding: 9px 0px;">
                                    <li style="padding-left:10px;">
                                        <button id="showExportStock" onclick="showExportStock()" style="margin-top: 7px;" type="button" class="btn btn-warning btn-xs">
                                            <i class="fa"></i>&nbsp;导出
                                        </button>
                                    </li>

                                    <li>
                                        <select id="storId" name="storId" class="form-control forsubmiteq" fieldname="a.stor_id"
                                                fieldtype="string" fieldoperator="and">
                                                <option value="">全部</option>
                                        </select>
                                    </li>

                                </ul>
                                <div class="tab-content">
                                    <!-- 待审核div -->
                                    <div class="tab-pane fade in active" style="">
                                        <div class="table-responsive">
                                            <div class="portlet-body">
<!--                                                 <table id="stockCheckList" -->
<!--                                                     class="table table-hover table-striped table-bordered table-advanced tb-sticky-header" style="table-layout:fixed;" width="100%"> -->
                                                    <table id="stockCheckList" name="stockCheckList"
                                                 style="table-layout:fixed;" class="table table-hover table-striped table-bordered table-advanced" width="100%" >
                                                    <thead>
                                                        <tr>
                                                            <th width="7%" colValue="storName">仓库名称</th>
                                                            <th width="10%" colValue="goodsCode">商品商家编码</th>
                                                            <th width="10%" colValue="goodsName">商品名称</th>
                                                            <th width="10%" colValue="skuCode">规格商家编码</th>
                                                            <th width="10%" colValue="skuName">规格名称</th>
                                                            <th width="6%" colValue="available">可用数<br/>(正品)</th>
                                                            <th width="7%" mincolValue="canallotQty">可分派数<br/>(正品)</th>
                                                            <th width="7%" mincolValue="junkCanallotQty">可分派数<br/>(次品)</th>
                                                            <th width="6%" mincolValue="stockQty">库存数<br/>(正品)</th>
                                                            <th width="6%" mincolValue="junkQty">库存数<br/>(次品)</th>
                                                            <th width="7%" mincolValue="allotQty">已分派数</th>
                                                            <th width="7%" mincolValue="unallotQty">未分派数</th>
                                                            <th width="6%" mincolValue="reserveQty">预留数</th>
                                                            <th width="6%" mincolValue="freezeQty">冻结数</th>
                                                            <th width="6%" mincolValue="onwayQty">在途数</th>
                                                            <th width="7%" mincolValue="logicStockoutQty">逻辑出库数</th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>

                                                    </tbody>
                                                    <tfoot>
                                                    <tr>
                                                        <th width="7%" colValue="storName">合计：</th>
                                                        <th width="10%" colValue="goodsCode"></th>
                                                        <th width="10%" colValue="goodsName"></th>
                                                        <th width="10%" colValue="skuCode"></th>
                                                        <th width="10%" colValue="skuName"></th>
                                                        <th width="6%" colValue="available" id="availableSum">可用数<br/>(正品)</th>
                                                        <th width="7%" mincolValue="canallotQty">可分派数<br/>(正品)</th>
                                                        <th width="7%" mincolValue="junkCanallotQty">可分派数<br/>(次品)</th>
                                                        <th width="6%" mincolValue="stockQty">库存数<br/>(正品)</th>
                                                        <th width="6%" mincolValue="junkQty">库存数<br/>(次品)</th>
                                                        <th width="7%" mincolValue="allotQty">已分派数</th>
                                                        <th width="7%" mincolValue="unallotQty">未分派数</th>
                                                        <th width="6%" mincolValue="reserveQty">预留数</th>
                                                        <th width="6%" mincolValue="freezeQty">冻结数</th>
                                                        <th width="6%" mincolValue="onwayQty">在途数</th>
                                                        <th width="7%" mincolValue="logicStockoutQty">逻辑出库数</th>
                                                    </tr>
                                                    </tfoot>
                                                </table>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!--END CONTENT -->


    <!--新建弹出层-->
    <div id="modalResendDetail" tabindex="-1" role="dialog" aria-hidden="true" class="modal fade">
        <div class="modal-dialog modal-wide-width">
            <div class="modal-content">
                <div class="modal-header modal-header-primary">
                    <button type="button" data-dismiss="modal" aria-hidden="true" class="close">x</button>
                    <h4 id="editTitle" class="modal-title">入库单</h4>
                </div>
                <div id="modelBody" class="modal-body" style="overflow-y: auto; overflow-x: auto; height: 455px;">
                    <!--begin form-->

                    <div id="flat-skin" class="row skin skin-flat">
                        <iframe id="ifmSysRefundDetail" name="ifmSysRefundDetail" allowtransparency="true" style="" title="test" frameborder="0"
                            width="100%" height="700px" scrolling="no"></iframe>
                    </div>
                </div>
                <div class="modal-footer">
                    <button id="btnResendClose" type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
                    <button id="btnSave" type="button" class="btn btn-primary">保存</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 导出文件 -->
    <div id="exportList" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" class="modal fade"
         aria-labelledby="modal-header-primary-label">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header modal-header-primary">
                    <button type="button" data-dismiss="modal" aria-hidden="true" class="close">x</button>
                    <h4 id="modal-header-primary-label" class="modal-title">导出EXCEL</h4>
                </div>
                <div class="modal-body">
                    <form id="formShopTypeSelect" role="form" action="#" class="form-horizontal">
                        <div class="row">
                            <div class="form-group">
                                <div class="container-fluid">
                                    <div class="btn-group btn-group-sm mbm" style="margin-left: 15px;">
                                        <a id="select-all" href="#" class="btn btn-default">全选择</a>
                                        <a id="deselect-all" href="#" class="btn btn-default">全清除</a>
                                        <a id="refresh" href="#" class="btn btn-default">刷新</a>
                                    </div>
                                    <select id="public-methods" multiple="multiple" style="position: absolute; left: -9999px;">
                                        <option value="storName">仓库名称</option>
                                        <option value="goodsCode">商品商家编码</option>
                                        <option value="goodsName">商品名称</option>
                                        <option value="skuCode">规格商家编码</option>
                                        <option value="skuName">规格名称</option>
                                        <option value="available">可用数(正品)</option>
                                        <option value="canallotQty">可分派数(正品)</option>
                                        <option value="junkCanallotQty">可分派数(次品)</option>
                                        <option value="stockQty">库存数(正品)</option>
                                        <option value="junkQty">库存数(次品)</option>
                                        <option value="allotQty">已分派数</option>
                                        <option value="unallotQty">未分派数</option>
                                        <option value="reserveQty">预留数</option>
                                        <option value="freezeQty">冻结数</option>
                                        <option value="onwayQty">在途数</option>
                                        <option value="logicStockoutQty">逻辑出库数</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </form>
                    <iframe id="exportFrame" style= "display   :none "></iframe>
                </div>
                <div class="modal-footer">
                    <button type="button" data-dismiss="modal" class="btn btn-default">关闭</button>
                    <button id="btnExportList" type="button" class="btn btn-primary">导出</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 加载 jquery js-->
    <script src="/Apollo/madmin/js/jquery-1.10.2.min.js"></script>
    <script src="/Apollo/madmin/js/jquery-migrate-1.2.1.min.js"></script>
    <script src="/Apollo/madmin/js/jquery-ui.js"></script>



    <!-- 加载 bootstrap 和三方插件 js -->
    <script src="/Apollo/madmin/vendors/bootstrap/js/bootstrap.min.js"></script>
    <script src="/Apollo/madmin/vendors/bootstrap-hover-dropdown/bootstrap-hover-dropdown.js"></script>
    <script src="/Apollo/madmin/js/html5shiv.js"></script>
    <script src="/Apollo/madmin/js/respond.min.js"></script>
    <script src="/Apollo/madmin/vendors/metisMenu/jquery.metisMenu.js"></script>
    <script src="/Apollo/madmin/vendors/slimScroll/jquery.slimscroll.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-cookie/jquery.cookie.js"></script>
    <script src="/Apollo/madmin/vendors/iCheck/icheck.min.js"></script>
    <script src="/Apollo/madmin/vendors/iCheck/custom.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-notific8/jquery.notific8.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-highcharts/highcharts.js"></script>
    <script src="/Apollo/madmin/js/jquery.menu.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-pace/pace.min.js"></script>
    <script src="/Apollo/madmin/vendors/holder/holder.js"></script>
    <script src="/Apollo/madmin/vendors/responsive-tabs/responsive-tabs.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-news-ticker/jquery.newsTicker.min.js"></script>
    <script src="/Apollo/madmin/vendors/moment/moment.js"></script>
    <script src="/Apollo/madmin/vendors/DataTables/media/js/jquery.dataTables.js"></script>
    <script src="/Apollo/madmin/vendors/DataTables/media/js/dataTables.bootstrap.js"></script>
    <script src="/Apollo/madmin/vendors/DataTables/extensions/TableTools/js/dataTables.tableTools.min.js"></script>
    <script src="/Apollo/madmin/js/table-datatables.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-tablesorter/jquery.tablesorter.js"></script>
    <script src="/Apollo/madmin/js/table-advanced.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-validate/jquery.validate.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-validate/message_zh.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-steps/js/jquery.steps.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-bootstrap-wizard/jquery.bootstrap.wizard.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-notific8/jquery.notific8.min.js"></script>
    <script src="/Apollo/madmin/vendors/sco.message/sco.message.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-notific8/notific8.js"></script>
    <script src="/Apollo/madmin/vendors/bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>
    <script src="/Apollo/madmin/vendors/jquery-inputmask/jquery.inputmask.bundle.min.js"></script>
    <script src="/Apollo/madmin/vendors/DataTables/jquery.jeditable.js"></script>
    <script src="/Apollo/madmin/js/table-editable.js"></script>

    <script src="/views/static/js/jquery.validate.extend.js"></script>
    <script src="stockCheckList.js"></script>
    <script src="/views/static/js/setPageButtonStatus.js"></script>
</body>
</html>